<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<table class="imagetable">
	<thead>
		<tr>
			<th colspan="4">Profil uživatele</th>
		<tr>
	</thead>
	<tbody>
		<tr>
			<td style="width: 50px">Login:</td><td colspan="3">${usr.login}</td>
		</tr>
		<tr>
			<td style="width: 50px">Email:</td><td colspan="3">${usr.email}</td>
		</tr>
	</tbody>
</table>
<table class="imagetable">
	<thead>
		<tr><strong>Vložené projekty</strong></tr>
		<tr>
			<th></th><th>Název</th><th>Popis</th><th>Hodnoceni</th><th>Akce</th>
		<tr>
	</thead>
	<tbody>
		<c:forEach var="app" items="${apps}">
			<tr>
						<td style="width: 50px; height: 50px"><img src="/CodeStorage/application/${app.id}/icon" alt="ikona" width="45" height="45"/></td>
						<td>${app.nazev}</td>
						<td>${app.popis}</td>
						<td>${app.hod}</td>
						<td>
							<a href="/CodeStorage/application/${app.id}/display">Detail</a>
							<a href="/CodeStorage/application/${app.id}/edit">Edit</a>
							<a href="/CodeStorage/application/${app.id}/delete">Smaž</a>
						</td>
					</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr><td colspan="5"></td></tr>
	</tfoot>
</table>